package org.phoenix.mall.admin.pojo;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Data
@Table(name = "t_right")
public class Right {
    /**
     * 权限ID
     */
    @Id
    private Integer id;

    /**
     * 名称
     */
    @Column(name = "name")
    private String authName;

    /**
     * 路径
     */
    private String path;

    /**
     * 层级
     */
    private Integer level;

    /**
     * 父权限ID
     */
    private Integer pid;

    /**
     * 创建时间
     */
    @Column(name = "create_time")
    private Date createTime;
}